package com.softoa.contorller;

import com.softoa.pojo.Personaladdress;
import com.softoa.service.IPersonalAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@CrossOrigin
@RequestMapping("presonaladdress")
public class PersonalAddressController {
    @Autowired
    IPersonalAddressService iPersonalAddressService;

    @RequestMapping("insert")
    public int personalAddressInsert(Personaladdress personaladdress){
        return iPersonalAddressService.personalAddressInsert(personaladdress);
    };
    @RequestMapping("update")
    public int personalAddressUpdate(Personaladdress personaladdress){
        return iPersonalAddressService.personalAddressUpdate(personaladdress);
    };
    @RequestMapping("select")
    public java.util.List<Personaladdress> personalAddressSelect(Personaladdress rule){
        return iPersonalAddressService.personalAddressSelect(rule);
    };
}
